package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class QualiInqueryClari {
    public static String qualiInqueryClari="<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            "<qualiInqueryClari> \n" +
            "    <tenderProjectCode>{0}</tenderProjectCode>\n" +
            "    <bidSectionCodes>{1}</bidSectionCodes>\n" +
            "    <unifiedDealCodes>{2}</unifiedDealCodes>\n" +
            "    <docCode>{3}</docCode>\n" +
            "    <applicantQualifications>{4}</applicantQualifications>\n" +
            "    <applicantCalidTime>{5}</applicantCalidTime>\n" +
            "    <docSubmitEndTime>{6}</docSubmitEndTime>\n" +
            "    <docSubmitMethod>{7}</docSubmitMethod>\n" +
            "    <docOpenTime>{8}</docOpenTime>\n" +
            "    <docOpenMethod>{9}</docOpenMethod>\n" +
            "    <evaluationMethod>{10}</evaluationMethod>\n" +
            "    <clarifyContent>{11}</clarifyContent>\n" +
            "    <submitTime>{12}</submitTime>\n" +
            "    <attachmentSetCode>{13}</attachmentSetCode>\n" +
            "    <platFormCode>{14}</platFormCode>\n" +
            "    <pubServicePlatCode>{16}</pubServicePlatCode>\n" +
            "    <dataTimeStamp>{16}</dataTimeStamp>\n" +
            "</qualiInqueryClari>";

    public static void setQualiInqueryClari(String qualiInqueryClari,String s0,String s1,String s2,String s3,String s4,String s5,String s6,String s7,String s8,String s9,String s10
            ,String s11,String s12,String s13,String s14,String s15,String s16) {
        QualiInqueryClari.qualiInqueryClari = MessageFormat.format(qualiInqueryClari,s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,
                s11,s12,s13,s14,s15,s16);
    }

    public static void setQualiInqueryClari(){
        setQualiInqueryClari(qualiInqueryClari, ParameterUtils.get("tenderProjectCode"),
                                                ParameterUtils.get("bidSectionCodes"),
                                                ParameterUtils.get("unifiedDealCodes"),
                                                ParameterUtils.get("docCode"),
                                                ParameterUtils.get("applicantQualifications"),
                                                ParameterUtils.get("applicantCalidTime"),
                                                ParameterUtils.get("docSubmitEndTime"),
                                                ParameterUtils.get("docSubmitMethod"),
                                                ParameterUtils.get("docOpenTime"),
                                                ParameterUtils.get("docOpenMethod"),
                                                ParameterUtils.get("evaluationMethod"),
                                                ParameterUtils.get("clarifyContent"),
                                                ParameterUtils.get("submitTime"),
                                                ParameterUtils.get("attachmentSetCode"),
                                                ParameterUtils.get("platFormCode"),
                                                ParameterUtils.get("pubServicePlatCode"),
                                                ParameterUtils.get("dataTimeStamp")
                );
    }

    public static void main(String[] args) {
        setQualiInqueryClari();
        System.out.println(qualiInqueryClari);
    }


}
